﻿@model List<Model.News>
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="description" content="Creating Modal Window with Twitter Bootstrap">
    <link href="/twitter-bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet">
    <link href="~/Areas/FG_Background_UI/Css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="~/Areas/FG_Background_UI/Css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
    <link href="~/Areas/FG_Background_UI/Css/style.css" rel="stylesheet" type="text/css" />
    <script src="~/Areas/FG_Background_UI/js/jquery2.js" type="text/javascript"></script>
    
    <script type="text/javascript" src="Js/jquery2.sorted.js"></script>

    <script src="~/Areas/FG_Background_UI/js/bootstrap.js" type="text/javascript"></script>
    <script src="~/Areas/FG_Background_UI/js/ckform.js" type="text/javascript"></script>
    <script src="~/Areas/FG_Background_UI/js/common.js" type="text/javascript"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
            background-color:#e9e7ef;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        


    </style>
</head>
<body>
    <form class="form-inline definewidth m20" action="/FG_Background_UI/Admin/SelectNews" method="post">
        <font color="#33ccff"><strong>新闻标题：</strong></font>
        <input type="text" name="menuname" id="menuname" class="abc input-default" placeholder="请输入标题" value="">&nbsp;&nbsp;
        <select name="NewsType">
            <option value="0">-请选择-</option>
            <option value="1">国内新闻</option>
            <option value="2">国际新闻</option>
        </select>
        <button type="submit" class="btn btn-primary">查询</button>&nbsp;&nbsp; <button type="button" class="btn btn-success" id="addnew" onclick="return location.href = '/FG_Background_UI/Admin/NewsAdd'">添加新闻</button>
    </form>
    <table class="table table-bordered table-hover definewidth m10">
        <thead>
            <tr>
                <th>新闻标题</th>
                <th>新闻内容</th>
                <th>发布时间</th>
                <th>新闻类别</th>
            </tr>
        </thead>
        @foreach (var i in Model)
        {
            <tr>
                <td>@i.NewsTitle</td>
                <td><a href="#" id="xiangqing" rel="popover" data-original-title="@i.NewsTitle" data-content="@i.NewsContent">详情</a></td>
                <td>@i.NewsDate</td>
                <td>@{ var ss = i.NewsType == 1 ? "国际新闻" : "国内新闻";}@ss</td>

            </tr>
        }
    </table>

</body>
</html>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap-tooltip.js"></script>
<script src="js/bootstrap-popover.js"></script>
<script>
$(function ()
{ $("#xiangqing").popover();
});
</script>
